package com.iyohei.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iyohei.entry.Blog;
import com.iyohei.mapper.BlogMapper;

@Service
public class BlogServiceImpl implements BlogService{
	
	@Autowired
	BlogMapper blogDao;

	@Override
	public Blog getById(long id) {
		return blogDao.getById(id);
	}

	@Override
	public List<Blog> getBlog() {
		return blogDao.getBlog();
	}

	
	
}
